A flash loan is an uncollateralized loan available in DeFi protocols that must be borrowed and repaid within the same blockchain transaction block. Because the loan is atomic — meaning it either completes entirely or is fully reversed — no collateral is required. Aave pioneered flash loans on Ethereum in 2020, enabling anyone to borrow millions of dollars with zero upfront capital, as long as the funds are returned before the transaction closes.
How It Works
Flash loans exploit atomicity, a property of blockchain transactions where all steps either succeed together or fail and revert entirely.
- A user initiates a transaction requesting a flash loan (e.g., 1,000,000 USDC from Aave).
- The protocol releases funds and calls the borrower’s custom smart contract.
- The borrower’s contract executes its logic — arbitrage, liquidation, collateral swap.
- The contract repays the loan plus a fee (typically 0.05–0.09%) in the same transaction.
- If repayment fails for any reason, the entire transaction reverts as if it never happened.
Common Use Cases
| Use Case | Description |
|---|---|
| Arbitrage | Exploit price differences across DEXs without starting capital |
| Liquidations | Liquidate undercollateralized positions to earn a bonus |
| Collateral Swaps | Swap collateral in a lending position atomically |
| Self-Liquidation | Repay your own loan and reclaim collateral in one step |
Flash Loan Fees
- Aave v3: 0.05% per transaction
- No fee is charged if the transaction reverts (borrower only pays gas)
History
- 2018 — Marble Protocol introduced the concept of flash lending on Ethereum, though with limited adoption.
- 2020, January — Aave launches flash loans on mainnet, making them widely accessible for the first time.
- 2020, February — bZx attack #1: An attacker used a $10M dYdX flash loan to manipulate oracle prices and profit ~$350,000.
- 2020, February — bZx attack #2: Five days later, a second attack netted ~$600,000 using the same oracle manipulation vector.
- 2021, May — PancakeBunny exploit: A flash loan attack on BNB Chain manipulated the BUNNY token price, causing a 95% crash and ~$45M in losses.
- 2022 — Mango Markets exploit: A $116M attack using price oracle manipulation, partially funded via flash loans.
Common Misconceptions
- “Flash loans are free money.” False. They require smart contract development skill, gas fees, and precise execution timing. Failed attempts still consume gas.
- “Only hackers use flash loans.” Legitimate uses — arbitrage, liquidations, and portfolio rebalancing — account for the majority of flash loan volume.
- “Flash loans increase systemic risk.” Flash loans expose existing vulnerabilities; they don’t create new ones. Protocols with robust oracle designs are not meaningfully at risk.
Criticisms
- Oracle manipulation vector: Flash loans allow attackers to temporarily distort prices on low-liquidity DEXs used as price oracles, enabling theft from vulnerable protocols.
- Barrier to entry is low: Unlike traditional exploits, flash loan attacks require little upfront capital, lowering the threshold for financially motivated attacks.
- Regulatory ambiguity: The uncollateralized nature of flash loans challenges conventional lending regulations, creating compliance uncertainty.
- MEV amplification: Flash loans can be combined with MEV strategies to extract value at the expense of regular users.
Social Media Sentiment
Flash loans generate divided sentiment. Developers praise them as an elegant demonstration of blockchain atomicity and a tool for efficient markets. Security researchers highlight them as the mechanism behind hundreds of millions in DeFi exploits. On r/defi and r/ethfinance, flash loan attacks consistently generate top posts when they occur.
Active communities: r/defi, r/ethfinance, r/ethereum, r/CryptoCurrency
Last updated: 2026-04
Related Terms
Sources
- Qin, K., Zhou, L., Livshits, B., & Gervais, A. (2021). “Empirical Analysis of EIP-1559: Transaction Fees, Waiting Times, and Consensus Security.” ACM CCS 2021.
- Aave Protocol (2020). “Flash Loans — Aave Protocol Documentation.”
- Werner, S., Perez, D., Gudgeon, L., Klages-Mundt, A., Harz, D., & Knottenbelt, W. (2022). “SoK: Decentralized Finance (DeFi).” ACM CFC 2022.
- Daian, P., Goldfeder, S., Kell, T., Li, Y., Zhao, X., Bentov, I., Breidenbach, L., & Juels, A. (2020). “Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus Instability.” IEEE S&P 2020.
- Gudgeon, L., Perez, D., Harz, D., Livshits, B., & Gervais, A. (2020). “The Decentralized Financial Crisis: Attacking DeFi.” FC 2020.